package com.cloudkinto.vo.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @author zhangyy
 * @date 2020/5/27 16:55
 * @description:
 */
@Data
@ApiModel
public class UpdatePasswordReq {
    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("密码")
    @NotBlank(message = "pls.input.original.password")
    private String password;

    @ApiModelProperty("新密码")
    @NotBlank(message = "pls.input.new.password")
    @Length(min = 6, max = 20, message = "password.length.1-20")
    private String newPassword;

    @ApiModelProperty("新密码")
    @NotBlank(message = "pls.input.new.password.again")
    @Length(min = 6, max = 20, message = "password.length.1-20")
    private String newPasswordAgain;
}
